package org.feiye.studyday14;

import java.util.Scanner;

public class TestPenguin {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		Penguin qq = new Penguin();
		System.out.println("请输入企鹅的昵称：");
		String name = in.next();
		System.out.println("请输入企鹅的品种：");
		String brain = in.next();
		System.out.println("请输入企鹅的年龄：");
		int age = in.nextInt();
		System.out.println("请输入企鹅的健康值：");
		int health = in.nextInt();
		qq.setName(name);
		qq.setBrain(brain);
		qq.setAge(age);
		qq.setHealth(health);
		qq.introduction();
		System.out.println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
		System.out.println(qq.getName());
		System.out.println(qq.getAge());
		System.out.println(qq.getBrain());
		System.out.println(qq.getHealth());
	}

}
